package com.lingnan.tijian.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lingnan.tijian.mapper.SetmealMapper;
import com.lingnan.tijian.domain.Setmeal;
import com.lingnan.tijian.service.ISetmealService;

/**
 * 选择套餐Service业务层处理
 * 
 * @author laozhong
 * @date 2025-01-06
 */
@Service
public class SetmealServiceImpl implements ISetmealService 
{
    @Autowired
    private SetmealMapper setmealMapper;

    /**
     * 查询选择套餐
     * 
     * @param id 选择套餐主键
     * @return 选择套餐
     */
    @Override
    public Setmeal selectSetmealById(String id)
    {
        return setmealMapper.selectSetmealById(id);
    }

    /**
     * 查询选择套餐列表
     * 
     * @param setmeal 选择套餐
     * @return 选择套餐
     */
    @Override
    public List<Setmeal> selectSetmealList(Setmeal setmeal)
    {
        return setmealMapper.selectSetmealList(setmeal);
    }

    /**
     * 新增选择套餐
     * 
     * @param setmeal 选择套餐
     * @return 结果
     */
    @Override
    public int insertSetmeal(Setmeal setmeal)
    {
        return setmealMapper.insertSetmeal(setmeal);
    }

    /**
     * 修改选择套餐
     * 
     * @param setmeal 选择套餐
     * @return 结果
     */
    @Override
    public int updateSetmeal(Setmeal setmeal)
    {
        return setmealMapper.updateSetmeal(setmeal);
    }

    /**
     * 批量删除选择套餐
     * 
     * @param ids 需要删除的选择套餐主键
     * @return 结果
     */
    @Override
    public int deleteSetmealByIds(String[] ids)
    {
        return setmealMapper.deleteSetmealByIds(ids);
    }

    /**
     * 删除选择套餐信息
     * 
     * @param id 选择套餐主键
     * @return 结果
     */
    @Override
    public int deleteSetmealById(String id)
    {
        return setmealMapper.deleteSetmealById(id);
    }
}
